package com.book.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.book.pojo.Chapter;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class BookVo {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    private String name;

    @TableField("synopsis")
    private String synopsis;

    @TableField("author_id")
    private Long authorId;

    @TableField("image")
    private String image;

    @TableField("type_id")
    private Long typeId;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("creat_time")
    private LocalDateTime creatTime;

    @TableField("book_count")
    private Integer bookCount;

    @TableField("free")
    private String free;

    @TableField("w_status")
    private String wStatus;

    @TableField("s_status")
    private String sStatus;

    //章节集合
    private List<Chapter> chapters;

}
